package com.tim.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 作者：Tim
 * 时间：2021/4/28 20:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Car {
    private Integer id;
    private String photo;
    private String owner;
    private String color;
    private String carNum;
    private String detail;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date creatDate;
    @JsonIgnore
    private String file;

    public Car(Integer id, String photo, String owner, String color, String carNum, String detail, Date creatDate) {
        this.id = id;
        this.photo = photo;
        this.owner = owner;
        this.color = color;
        this.carNum = carNum;
        this.detail = detail;
        this.creatDate = creatDate;
    }
}
